/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.sys.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户信息表Entity
 * @author jyangye
 * @version 2017-12-28
 */
public class FxUserinfo extends DataEntity<FxUserinfo> {
	
	private static final long serialVersionUID = 1L;
	private String userid;		// userid
	private String employeeid;		// employeeid
	private String username;		// username
	private String passwordsalt;		// passwordsalt
	private String userpassword;		// userpassword
	private String userstate;		// userstate
	private Date lastlogintime;		// lastlogintime
	private String lastloginip;		// lastloginip
	private String isonline;		// isonline
	private String webservicetoken;		// webservicetoken
	private Date tokencreatetime;		// tokencreatetime
	private String printcount;		// printcount
	private String imei;		// imei
	private String ismessagewarn;		// ismessagewarn
	private String bindclientip;		// bindclientip
	private String isdogauthentication;		// isdogauthentication
	private String tongbuimssystemresult;		// tongbuimssystemresult
	private String tongbuimssystemresultmessage;		// tongbuimssystemresultmessage
	private Date expirationdata;		// expirationdata
	private String lastuserpassword;		// lastuserpassword
	private String lastpasswordsalt;		// lastpasswordsalt
	
	public FxUserinfo() {
		super();
	}

	public FxUserinfo(String id){
		super(id);
	}

	@Length(min=1, max=32, message="userid长度必须介于 1 和 32 之间")
	@ExcelField(title="userid", align=2, sort=10)
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=32, message="employeeid长度必须介于 0 和 32 之间")
	@ExcelField(title="employeeid", align=2, sort=20)
	public String getEmployeeid() {
		return employeeid;
	}

	public void setEmployeeid(String employeeid) {
		this.employeeid = employeeid;
	}
	
	@Length(min=1, max=20, message="username长度必须介于 1 和 20 之间")
	@ExcelField(title="username", align=2, sort=30)
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=1, max=50, message="passwordsalt长度必须介于 1 和 50 之间")
	@ExcelField(title="passwordsalt", align=2, sort=40)
	public String getPasswordsalt() {
		return passwordsalt;
	}

	public void setPasswordsalt(String passwordsalt) {
		this.passwordsalt = passwordsalt;
	}
	
	@Length(min=1, max=32, message="userpassword长度必须介于 1 和 32 之间")
	@ExcelField(title="userpassword", align=2, sort=50)
	public String getUserpassword() {
		return userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}
	
	@Length(min=1, max=1, message="userstate长度必须介于 1 和 1 之间")
	@ExcelField(title="userstate", align=2, sort=60)
	public String getUserstate() {
		return userstate;
	}

	public void setUserstate(String userstate) {
		this.userstate = userstate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="lastlogintime", align=2, sort=70)
	public Date getLastlogintime() {
		return lastlogintime;
	}

	public void setLastlogintime(Date lastlogintime) {
		this.lastlogintime = lastlogintime;
	}
	
	@Length(min=0, max=20, message="lastloginip长度必须介于 0 和 20 之间")
	@ExcelField(title="lastloginip", align=2, sort=80)
	public String getLastloginip() {
		return lastloginip;
	}

	public void setLastloginip(String lastloginip) {
		this.lastloginip = lastloginip;
	}
	
	@Length(min=0, max=1, message="isonline长度必须介于 0 和 1 之间")
	@ExcelField(title="isonline", align=2, sort=90)
	public String getIsonline() {
		return isonline;
	}

	public void setIsonline(String isonline) {
		this.isonline = isonline;
	}
	
	@Length(min=0, max=32, message="webservicetoken长度必须介于 0 和 32 之间")
	@ExcelField(title="webservicetoken", align=2, sort=100)
	public String getWebservicetoken() {
		return webservicetoken;
	}

	public void setWebservicetoken(String webservicetoken) {
		this.webservicetoken = webservicetoken;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="tokencreatetime", align=2, sort=110)
	public Date getTokencreatetime() {
		return tokencreatetime;
	}

	public void setTokencreatetime(Date tokencreatetime) {
		this.tokencreatetime = tokencreatetime;
	}
	
	@Length(min=0, max=11, message="printcount长度必须介于 0 和 11 之间")
	@ExcelField(title="printcount", align=2, sort=120)
	public String getPrintcount() {
		return printcount;
	}

	public void setPrintcount(String printcount) {
		this.printcount = printcount;
	}
	
	@Length(min=0, max=32, message="imei长度必须介于 0 和 32 之间")
	@ExcelField(title="imei", align=2, sort=130)
	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}
	
	@Length(min=0, max=1, message="ismessagewarn长度必须介于 0 和 1 之间")
	@ExcelField(title="ismessagewarn", align=2, sort=140)
	public String getIsmessagewarn() {
		return ismessagewarn;
	}

	public void setIsmessagewarn(String ismessagewarn) {
		this.ismessagewarn = ismessagewarn;
	}
	
	@Length(min=0, max=20, message="bindclientip长度必须介于 0 和 20 之间")
	@ExcelField(title="bindclientip", align=2, sort=150)
	public String getBindclientip() {
		return bindclientip;
	}

	public void setBindclientip(String bindclientip) {
		this.bindclientip = bindclientip;
	}
	
	@Length(min=0, max=1, message="isdogauthentication长度必须介于 0 和 1 之间")
	@ExcelField(title="isdogauthentication", align=2, sort=160)
	public String getIsdogauthentication() {
		return isdogauthentication;
	}

	public void setIsdogauthentication(String isdogauthentication) {
		this.isdogauthentication = isdogauthentication;
	}
	
	@Length(min=0, max=1, message="tongbuimssystemresult长度必须介于 0 和 1 之间")
	@ExcelField(title="tongbuimssystemresult", align=2, sort=170)
	public String getTongbuimssystemresult() {
		return tongbuimssystemresult;
	}

	public void setTongbuimssystemresult(String tongbuimssystemresult) {
		this.tongbuimssystemresult = tongbuimssystemresult;
	}
	
	@Length(min=0, max=5000, message="tongbuimssystemresultmessage长度必须介于 0 和 5000 之间")
	@ExcelField(title="tongbuimssystemresultmessage", align=2, sort=180)
	public String getTongbuimssystemresultmessage() {
		return tongbuimssystemresultmessage;
	}

	public void setTongbuimssystemresultmessage(String tongbuimssystemresultmessage) {
		this.tongbuimssystemresultmessage = tongbuimssystemresultmessage;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="expirationdata", align=2, sort=190)
	public Date getExpirationdata() {
		return expirationdata;
	}

	public void setExpirationdata(Date expirationdata) {
		this.expirationdata = expirationdata;
	}
	
	@Length(min=0, max=32, message="lastuserpassword长度必须介于 0 和 32 之间")
	@ExcelField(title="lastuserpassword", align=2, sort=200)
	public String getLastuserpassword() {
		return lastuserpassword;
	}

	public void setLastuserpassword(String lastuserpassword) {
		this.lastuserpassword = lastuserpassword;
	}
	
	@Length(min=0, max=50, message="lastpasswordsalt长度必须介于 0 和 50 之间")
	@ExcelField(title="lastpasswordsalt", align=2, sort=210)
	public String getLastpasswordsalt() {
		return lastpasswordsalt;
	}

	public void setLastpasswordsalt(String lastpasswordsalt) {
		this.lastpasswordsalt = lastpasswordsalt;
	}
	
}